MLEAK

Section: mpatrol library (1)
Updated: 12 May 2000
Index Return to Main Contents
 

NAME

mleak - locates memory leaks in an mpatrol log file  

SYNOPSIS

mleak [-V] [file]  

DESCRIPTION

The mleak command is used to display all unfreed memory allocations from a log file produced by the mpatrol library. This should be used if the mpatrol library could not finish writing the log file due to abnormal program termination (which would prevent the SHOWUNFREED option from working), but note that some of the unfreed allocations might have been freed if the program had terminated successfully.

The mleak command scans through an mpatrol log file looking for lines beginning with ALLOC: and FREE: but ignores lines beginning with REALLOC:, so only the LOGALLOCS and LOGFREES options are necessary when running a program linked with the mpatrol library. Note that as a result of this, no attempt is made to account for resizing of memory allocations and so the total amount of memory used by the resulting unfreed allocations may not be entirely accurate.

The file argument must be a valid mpatrol log filename but if file is omitted then mleak will use mpatrol.log as the name of the log file to use. The mleak command makes two passes over the log file so the file must be randomly-accessable. If file is given as - then the standard input file stream will be used as the log file.  

OPTIONS

-V
Displays the version number of the mleak command.
 

SEE ALSO

mpatrol(1), mprof(1), mpatrol(3).

The mpatrol manual, reference card and FAQ.

http://www.cbmamiga.demon.co.uk/mpatrol/  

AUTHOR

Graeme S. Roy <graeme@epc.co.uk>  

COPYRIGHT

Copyright (C) 1997-2000 Graeme S. Roy <graeme@epc.co.uk>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 12:37:26 GMT, July 10, 2022